package cn.idongjia.kuaidi.pojos;

/**
 * Created by dongjia_lj on 16/4/8.
 */
public class Response {
    private int code;
    private Object msg;
    private Object res;

    public Response(int code){
        this.code=code;
        this.msg="SUCCESS";
    }
    public enum Code {
        HANDLE_SUCCESS(0), ERROR(500);

        private int code;

        private Code(int code) {
            this.code = code;
        }

        public int getCode() {
            return this.code;
        }
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public Object getMsg() {
        return msg;
    }

    public void setMsg(Object msg) {
        this.msg = msg;
    }

    public Object getRes() {
        return res;
    }

    public void setRes(Object res) {
        this.res = res;
    }
}
